package temp.lho.lws.service;


import temp.lho.lws.pojo.Flowinfomation;
import temp.lho.lws.vo.Accident;
import temp.lho.lws.vo.LoginVo;

import java.util.List;

/**
 * (Flowinfomation)表服务接口
 *
 * @author makejava
 * @since 2020-07-06 23:15:37
 */
public interface IFlowinfomationService extends IBaseService<Flowinfomation> {

    List<Flowinfomation> findFlowDetail(String taskname,Integer userId, Integer jobstate);

    /**
     * 修改任务状态
     * @param taskid
     * @param jobstate
     * @return
     */
    boolean updateJobStatus(Integer taskid, Integer jobstate,Integer transmitstate, LoginVo user);

    /**
     * 添加下一步流程
     * @param flowinfomation
     * @return
     */
    boolean addNextFlow(Flowinfomation flowinfomation);
    /**
     * @param accident
     * @return
     */
    int insert(Accident accident);

    int Fupdate(int jobState,  String claimMainId);
    /**
     * 根据节点id插叙流程
     * @param taskid
     * @return
     */
    Flowinfomation findByTaskId(Integer taskid);
}